<%-- 
    Document   : paris
    Created on : 13 juin 2010, 21:31:47
    Author     : jp
--%>
<%@ page contentType="text/html" pageEncoding="UTF-8" language="java"%>﻿
<%@include file="/WEB-INF/jsp/header.jsp" %>
<section id="profile-back">
  <nav id="user">
  <ul>
    <li><strong><a href="/profil/<sec:authentication property="principal.login"/>/informations-personnelles.htm" rel="nofollow">Informations Personnelles</a></strong></li>
    <li><strong><a href="/profil/<sec:authentication property="principal.login"/>/comptes.htm" rel="nofollow">Mon Compte</a></strong></li>
    <li><strong><a href="/profil/<sec:authentication property="principal.login"/>/paris.htm" rel="nofollow">Mes Paris</a></strong></li>
  </ul>
</nav>
</section>
<section id="bethist">
       <table align="center">
            <thead>
                <tr>
                    <td>Date</td>
                    <td>Paris</td>
                    <td>Votre Pari</td>
                    <td>Resultat</td>
                    <td>Mise</td>
                    <td>Gains</td>
                </tr>
            </thead>
            <tbody>
            <c:forEach var="bi" items="${betInstances}">
                <tr>
                    <td><c:out value="${bi.dateOfOperation}"/></td>
                    <td><c:out value="${bi.bet.name}"/></td>
                    <td><c:out value="${bi.betChoice.label}"/></td>
                    <td><c:choose>
                        <c:when test="${bi.betChoice.isWinning == true}">
                          <p><c:out value="${bi.betChoice.label}"/> vainqueur</p>
                        </c:when>
                        <c:otherwise>
                          <p><c:out value="${bi.betChoice.label}"/> perdant</p>
                        </c:otherwise>
                        </c:choose></td>
                    <td><c:out value="${bi.betAmount}"/><span> €</span></td>
                    <td><c:choose>
                        <c:when test="${bi.betChoice.isWinning == true}">
                          <p>-, - - €</p>
                        </c:when>
                        <c:when test="${bi.betChoice.isWinning == false}">
                          <p>0,00 €</p>
                        </c:when>
                        </c:choose>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
</section>
<%@include file="/WEB-INF/jsp/footer.jsp" %>
